package com.excilys.formation.project.dtos;

import org.joda.time.DateTime;

import com.excilys.formation.project.entities.TypeOperation;

public class OperationDTO {

	/**
	 * Montant de l'opération.
	 */
	private double montant;

	/**
	 * Date de la transaction, par défaut, l'instant présent.
	 */
	private DateTime date = DateTime.now();

	/**
	 * Date d'effet la transaction, par défaut, l'instant présent.
	 */
	private DateTime dateEffet = DateTime.now();

	/**
	 * Type de l'opération.
	 */
	private String typeOperation;

	public double getMontant() {
		return montant;
	}

	public void setMontant(double montant) {
		this.montant = montant;
	}

	public DateTime getDate() {
		return date;
	}

	public void setDate(DateTime date) {
		this.date = date;
	}

	public DateTime getDateEffet() {
		return dateEffet;
	}

	public void setDateEffet(DateTime dateEffet) {
		this.dateEffet = dateEffet;
	}

	public String getTypeOperation() {
		return typeOperation;
	}

	public void setTypeOperation(TypeOperation typeOperation) {
		this.typeOperation = typeOperation.getLibelle();
	}
	public void setTypeOperation(String s) {
		this.typeOperation = s;
	}

}
